package com.micklebes.dao;

import com.google.appengine.api.datastore.Key;

import java.io.Serializable;
import java.util.List;

/**
 * User:  catalin.besleaga
 * Date: 5/16/11
 * Time: 10:45 PM
 */

public interface GenericDAO<T> {

    T createObject(T object);

    void deleteObject(T object);

    T findObjectById(Serializable id);

    T getByKey(Key key);

    T updateObject(T object);

    List<T> findAll();

    void flush();
}